package notice

import (
	"gddgame.cc/galaxy/utils/orm"
)

var (
	NoticeModel = orm.NewModel("notice", &Notice{}, nil)
)

type NoticeType byte

const (
	WechatNoticeType NoticeType = iota
)

type Notice struct {
	Id        int        `json:"id" orm:"auto" sql:"INT"`
	Type      NoticeType `json:"type" sql:"TINYINT"`
	Subscribe string     `json:"subscribe" sql:"VARCHAR"`
	Target    string     `json:"target" sql:"VARCHAR"`
	Template  string     `json:"template" sql:"VARCHAR"`
	Status    bool       `json:"status" sql:"TINYINT"`
}
